<%@ page language="java" pageEncoding="UTF-8"%>
<%@include file="/common/taglibs.jsp"%>
<s:action name="rightcolumn" namespace="/template"></s:action>
<script type="text/javascript">
			function sub(){
                var keywords=document.getElementById('keywords').value;
                if(keywords==null||keywords==""){
                    alert("请输入关键字!");
                    document.query.keywords.focus();
                    return false;
                }
                return true;
		    }
		    function cls(){
                with (event.srcElement)
                if(value=="搜索资讯...")
                    value="";
            }
            function res(){
            	 with (event.srcElement)
                if(value=="")
                	value="搜索资讯...";     
            }
		</script>
<div id="rightcolumn">
	<div class="rc_panel">
		<div class="rc_paneltop"></div>
		
		<div class="rc_panelbody">
			<form name="query" method="post" action="query" onsubmit="return sub()">
				<input id="keywords" class="textfield" name="keywords" type="text" value="搜索资讯..." onfocus="cls()" onblur="res()"
					 />
				<input class="button" type="submit" name="Submit" value="搜索" />
			</form>
		</div>
		
		<div class="rc_panelbottom"></div>
	</div>
	
	<div class="rc_panel">
		<div class="rc_paneltop"></div>
		<div class="rc_panelbody">
			<h3>
				热门资讯：
			</h3>
			<ul>
				<c:forEach var="cArticle" items="${requestScope.CTARTICLE}">
					<li>
						<a href="getArticle?articleId=${cArticle.articleId}" target="_blank">${fn:substring(cArticle.articleTitle,0,16)}</a>
					</li>
				</c:forEach>
			</ul>
		</div>
		<div class="rc_panelbottom"></div>
	</div>
	<div class="rc_panel">
		<div class="rc_paneltop"></div>
		<div class="rc_panelbody">
			<h3>
				热论文章：
			</h3>
			<ul>
				<c:forEach var="s" items="${requestScope.STARTICLE}">
					<li>
						<a href="getArticle?articleId=${s.articleId}">${fn:substring(s.articleTitle,0,16)}</a>
					</li>
				</c:forEach>
			</ul>
		</div>
		<div class="rc_panelbottom"></div>
	</div>
</div>